package mashibing.eor;

/**
 * 不用额外变量交换两个数
 * ClassName ChangeNumber
 * Create by hx
 * Date 2021/9/5 12:25 下午
 */

public class ChangeNumber {
    public static void main(String[] args) {
        int a = 15, b = 14;
        a = a ^ b;
        b = a ^ b;
        a = a ^ b;
        System.out.println("a="+a+", b="+b);
    }

}
